﻿using System;

namespace diantou.web.server
{
    /// <summary>
    /// 域名重定向服务
    /// </summary>
    sealed class locationServer : fastCSharp.net.tcp.http.domainServer.locationServer
    {
        /// <summary>
        /// 网站生成配置
        /// </summary>
        /// <returns>网站生成配置</returns>
        protected override fastCSharp.code.webConfig getWebConfig()
        {
            return webServer.WebConfig;
        }
        /// <summary>
        /// 获取包含协议的重定向域名
        /// </summary>
        /// <returns>获取包含协议的重定向域名</returns>
        protected override string getLocationDomain()
        {
            return "http://" + webConfig.Default.MainDomain + "/";
        }
    }
}
